package com.baizhi.dao;

import com.baizhi.entity.Banner;
import jdk.nashorn.internal.ir.BaseNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 野马 on 2019/6/19.
 */
public interface BannerDao {

    public void insertBanner(Banner banner);
    //做假删除
    public void deleteBanner(int bannerId);

    public void updateBanner(Banner banner);

    public List<Banner> selectBanner(@Param("start")int start,@Param("pageSize")int pageSize);

    public int countBanner();

    //查询最新五个轮播图
    public List<Banner> selectBannnerAll();
}
